package com.adcc.loadsheet.billing.vo.chargerule;

import com.adcc.loadsheet.billing.entity.chargerule.BillingLadderEntity;
import com.adcc.loadsheet.billing.vo.BasisVO;

import java.math.BigDecimal;

/**
 * 计费阶梯表实体VO
 * Created by zhaoml on 2020/4/7.
 */
public class BillingLadderEntityVO extends BasisVO<BillingLadderEntity> {
    private Integer billingLadderId;     //主键ID
    private Integer billingRuleId;   //计费规则表主键ID
    private Integer ladderStartnumber;  //阶梯开始数
    private Integer ladderEndnumber;    //阶梯结束数
    private BigDecimal unitPrice;   //单价

    private Integer orderNumber;    //页面显示的序号（递增）
    private String unitPriceStr;     //单价，用以页面显示

    @Override
    public BillingLadderEntity toEntity() {
        BillingLadderEntity billingLadderEntity = new BillingLadderEntity();
        billingLadderEntity.setBillingLadderId(this.billingLadderId);
        billingLadderEntity.setBillingRuleId(this.billingRuleId);
        billingLadderEntity.setLadderStartnumber(this.ladderStartnumber);
        billingLadderEntity.setLadderEndnumber(this.ladderEndnumber);
        billingLadderEntity.setUnitPrice(this.unitPrice);
        return billingLadderEntity;
    }

    @Override
    public String toJSON() {
        return null;
    }

    public Integer getBillingLadderId() {
        return billingLadderId;
    }

    public void setBillingLadderId(Integer billingLadderId) {
        this.billingLadderId = billingLadderId;
    }

    public Integer getBillingRuleId() {
        return billingRuleId;
    }

    public void setBillingRuleId(Integer billingRuleId) {
        this.billingRuleId = billingRuleId;
    }

    public Integer getLadderStartnumber() {
        return ladderStartnumber;
    }

    public void setLadderStartnumber(Integer ladderStartnumber) {
        this.ladderStartnumber = ladderStartnumber;
    }

    public Integer getLadderEndnumber() {
        return ladderEndnumber;
    }

    public void setLadderEndnumber(Integer ladderEndnumber) {
        this.ladderEndnumber = ladderEndnumber;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public Integer getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(Integer orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getUnitPriceStr() {
        return unitPriceStr;
    }

    public void setUnitPriceStr(String unitPriceStr) {
        this.unitPriceStr = unitPriceStr;
    }
}